package abstractClasses;

import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
        Person[] people = new Person[2];

        people[0] = new Employee("one", 50000, 1990, 1, 1);
        people[1] = new Student("two", "computer science");

        for (Person p : people) {
            System.out.println(p.getName() + ", " + p.getDescription());
        }

        Employee test = new Employee("three", 10000, 1993, 1, 1);
        System.out.println(test instanceof Employee);

        String s = "OK";
        StringBuilder sb = new StringBuilder(s);
        System.out.println(s.hashCode() + " " + sb.hashCode());
        String t = "OK";
        StringBuilder tb = new StringBuilder(t);
        System.out.println(t.hashCode() + " " + tb.hashCode());

        System.out.println(System.out);

        int[] luckyNumbers = {1, 2, 3, 4};
        System.out.println(luckyNumbers);
        System.out.println(Arrays.toString(luckyNumbers));
    }
}
